<!DOCTYPE html>
<html>
<!--总有一些不经意的时光，需要被镌刻-->
<head>
    <title>云日记</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge" charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta name="keywords" content="云日记,日记本,记事本,写日记,E8工作室">
    <meta name="description" content="我们坚信每个人的生活都有一些小时光值得被记录，希望通过云日记网站能唤起人们用文字记录生活的这种被遗忘很久的习惯。">

    <link rel="stylesheet" type="text/css" href="__PUBLIC__/home/css/css.css" />
</head>
<body data-spy="scroll" data-target=".bs-docs-sidebar">
    <div class="navbar navbar-fixed-top">
        <div class="navbar-inner">
            <div class="container">
                <a href="{:U('Index/index')}" class="brand">云日记</a>
                <div class="nav-collapse">
                    <ul class="nav nav-pills">
                        <li><a href="{:U('Index/index')}" >首页</a></li>
                        <li><a href="{:U('Find/index')}">发现</a></li>
                        <li><a href="{:U('Write/index')}">写日记</a></li>
                    </ul>
                </div>
                <ul class="nav navbar-nav" style="float:right;">
                    <li><a href="{:U('Register/index')}">注册</a></li>
                     <li><a href="{:U('Setting/index')}">设置</a></li>
                     <li><a href="{:U('Logout/index')}">退出</a></li>
                </ul>
            </div>
        </div>
    </div>

<div class="container">
    <div class="row-fluid show-grid">
        <div class="span8">
            <h4><span>{$username} 的日记</span></h4>
            <foreach name='userAllBooks' item='vo'>
                <div class="Diary-wrap">
                    <h5> 标题: <a href="{:U('List/index',['id'=>$vo['id']])}">{$vo['title']}</a>
                        <small>[ {$vo['private']} ] </small>
                        <small>[天气:{$vo['weather']}] </small>
                        <small>[心情:{$vo['mood']}] </small>
                    </h5>
                    <div class="Diary-content">
                        <p style="max-height: 70px;overflow:hidden;text-overflow:ellipsis;word-break:normal;">{$vo['content']}</p>
                    </div>
                    <div class="bar">{$vo['addtime']} 
                        <small>{:intval($vo['views'])}阅读</small>
                    </div>
                </div>
            </foreach>
        </div>
        
        <div class="span4">
            <div class="User-box well">
                <dl class="pl">
                    <dt> 
                        <img src="__ROOT__/{$userImage}" style="border-radius: 10%; width: 150px;height: 150px;margin: auto;text-align: center;display: block;">
                    </dt>
                    <dd> <p style="text-align: center;font-size: 17px;margin-top: 15px;">{$username} 于{$userinfo['regtime']} 日加入</dd>
                    <div id="J_UserBar" class="btn-group hot" style="text-align:center;">
                      <a href="{:U('Write/index')}" class="btn btn-primary">我要写日记啦</a>
                    </div>
                </dl>
            </div>
            <div class="row Note-list hot">
                  <ul>
                    <foreach name="getFiveRecords" item="vo">
                        <li style="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"><a href="{:U('List/index',['id'=>$vo['id']])}">{$vo.username}</a>写了一篇日记{$vo.addtime}</li>
                    </foreach>
                 </ul>
            </div>
        </div>
    </div>
    <!--分页-->
    <div class="pagination" style="text-align:center;margin-bottom:80px;">
      <ul>
        {:$page->show()}
      </ul>
    </div>
    
    <hr>
    <footer>
      <p style="text-align:center;font-size:14px;">版权所有 &copy; 淮南师范学院&nbsp;皖ICP备16000979号</br>powered by E8工作室</br>Email:2013855675@qq.com</p>
    </footer>
   </body>
</html>